<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h2 class="green">User List</h2>
 <img src="../images/icons/user_add.png"/> <s:a label="test" href="user_add">Add new user</s:a>
<s:actionerror />
<s:fielderror />
<s:actionmessage />
<s:form>
<table width="100%" cellpadding="3" cellspacing="1" class="oxyTable">
		<thead>
			<tr class="oxydarkBg">
				<th>Id</th>
				<th>Name</th>
				<th>Role</th>
				<th>E mail 1</th>
				<th>Team</th>
				<th>Telephone</th>
				<th>Mobile</th>
				<th>Country</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="userList" id="user">
				<tr>
					<td valign="top" class="oxyliteBg"><s:property value="#user.id" /></td>
					<td valign="top" class="oxyWhiteCell">
						<s:url action="user_modify" id="myUrl">
							<s:param name="id" value="#user.id"/>
						</s:url>
						<s:a href="%{myUrl}">
							
						</s:a>
						<s:property value="#user.userName" />
					</td>
					<td valign="top" class="oxyliteBg">
						<s:property value="#user.userRole.name"/>
					</td>
					<td valign="top" class="oxyWhiteCell">
						<s:property value="#user.contactInfo.email1"/>
					</td>
					<td valign="top" class="oxyliteBg">
						<s:property value="#user.team.name"/>
					</td>
					<td valign="top" class="oxyWhiteCell">
						<s:property value="#user.contactInfo.telephone"/>
					</td>
					<td valign="top" class="oxyliteBg">
						<s:property value="#user.contactInfo.mobile"/>
					</td>
					<td valign="top" class="oxyWhiteCell">
						<s:property value="#user.contactInfo.country"/>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
</s:form>
</body>
</html>